# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1284597673.358089
_template_filename='/Users/joeldunham/old/onlinelinguisticdatabase/templates/derived/form/associate.html'
_template_uri='/derived/form/associate.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['heading']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    # SOURCE LINE 2
    ns = runtime.Namespace(u'formViews', context._clean_inheritance_tokens(), templateuri=u'/base/formViews.html', callables=None, calling_uri=_template_uri, module=None)
    context.namespaces[(__name__, u'formViews')] = ns

def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base/index.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'formViews')._populate(_import_ns, [u'formViewForAssociation'])
        url = _import_ns.get('url', context.get('url', UNDEFINED))
        formViewForAssociation = _import_ns.get('formViewForAssociation', context.get('formViewForAssociation', UNDEFINED))
        c = _import_ns.get('c', context.get('c', UNDEFINED))
        h = _import_ns.get('h', context.get('h', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n')
        # SOURCE LINE 2
        __M_writer(u'\n\n')
        # SOURCE LINE 6
        __M_writer(u'\n\n<br />\n')
        # SOURCE LINE 9
        __M_writer(escape(formViewForAssociation(c.form)))
        __M_writer(u'\n\n<div class="tableSpacerDivHalf"></div>\n\n<form class="formTable" action="')
        # SOURCE LINE 13
        __M_writer(escape(url(controller='form', action='link', id=c.form.id)))
        __M_writer(u'" method="post">\n <fieldset>\n  <legend>Associate by File ID</legend>\n  <ol>\n   <li>\n    <label for="fileID">enter 1 or more comma-separated File IDs</label>  \n    <input id="fileID" name="fileID" tabindex="1" type="text" size="50" />    \n   </li>\n  </ol>\n </fieldset>\n <div>')
        # SOURCE LINE 23
        __M_writer(escape(h.submit(value="Associate", name='submit', tabindex=2)))
        __M_writer(u'</div>\n</form>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_heading(context):
    context.caller_stack._push_frame()
    try:
        _import_ns = {}
        _mako_get_namespace(context, u'formViews')._populate(_import_ns, [u'formViewForAssociation'])
        c = _import_ns.get('c', context.get('c', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 4
        __M_writer(u'\n    <h1 class="heading">Associate Form ')
        # SOURCE LINE 5
        __M_writer(escape(c.form.id))
        __M_writer(u' to a File</h1>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


